-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Fix plugin #53612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin #53612
Conversation
sdk/ai/Azure.AI.Projects/src/Custom/AIProjectConnectionsOperations.cs
Outdated
Show resolved
Hide resolved
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
sdk/ai/Azure.AI.Projects/src/Custom/AIProjectConnectionsOperations.cs
Outdated
Show resolved
Hide resolved
sdk/ai/Azure.AI.Projects/src/Custom/AIProjectConnectionsOperations.cs
Outdated
Show resolved
Hide resolved
sdk/ai/Azure.AI.Projects/src/Custom/Connections/AIProjectConnectionsOperations.cs
Outdated
Show resolved
Hide resolved
f1ad355 to
c37a2f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends the SpecialHeadersVisitor to support optionally adding back the x-ms-client-request-id header in generated request methods, enabling the Client Plugin to include this header when needed.
- Modified
SpecialHeadersVisitorto accept a boolean parameter controlling whether to includex-ms-client-request-idin requests - Added build targets for the Client Plugin to both
service.projandCodeGeneration.targets - Updated the Client Plugin to use the new
SpecialHeadersVisitorparameter
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/service.proj | Added BuildPlugin target and updated GenerateCode to depend on it; cleaned up whitespace |
| eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs | Updated SpecialHeadersVisitor instantiation to include x-ms-client-request-id in requests |
| eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj | Refactored property name from VisitorsSharedSource to AzureGeneratorSource and simplified LinkBase paths |
| eng/packages/plugins/client/Client.Plugin/ci.yml | Added trigger path for http-client-csharp to trigger CI when generator changes |
| eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs | Expanded test coverage to verify both modes of header inclusion and refactored to test multiple operations |
| eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs | Added visitors parameter to allow injecting custom visitors during testing |
| eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs | Refactored to support optional inclusion of x-ms-client-request-id header via constructor parameter and split logic into two methods |
| eng/CodeGeneration.targets | Added BuildPlugin target with skip condition and updated GenerateCode to depend on it |
eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs
Show resolved
Hide resolved
|
/check-enforcer evaluate |
|
/check-enforcer override |
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.